import request from '@/utils/request'

// 分页
export function testtaskList(params) {
  return request({
    url: '/test/job',
    method: 'get',
    params
  })
}

// 删除
export function deltesttask(data) {
  return request({
    url: '/test/job?c=del',
    method: 'post',
    paramType: 'formData',
    data
  })
}
// 汇总查询
export function SummaryList(params) {
  return request({
    url: '/test/job?c=testsetsExecSummary',
    method: 'get',
    params
  })
}
// 日志
export function testsetLog(params) {
  return request({
    url: '/test/job?c=testsetLog',
    method: 'get',
    params
  })
}
// 中止
export function stopJob(params) {
  return request({
    url: '/test/job?c=stop',
    method: 'get',
    params
  })
}

// 定时刷新
export function timesetLog(params) {
  return request({
    url: '/test/job?c=testsetsExecSummary',
    method: 'get',
    params
  })
}
// 测试报告
export function jobtestreport(params) {
  return request({
    url: '/test/job?c=jobReport',
    method: 'get',
    params
  })
}
